CROSS_COMPILE=mips-linux-uclibc-gnu-
CC = ${CROSS_COMPILE}gcc
CPP = ${CROSS_COMPILE}g++
LD = ${CROSS_COMPILE}ld

DEBUG = y
CONFIG_DMALLOC=n
I264E=i264e
IJPEGE=ijpege
IJPEGD=ijpegd
HWICODEC=hwicodec
ICOMMON=icommon
INCLUDE_COMMON = -I${ISVP_ENV_SDK_DIR}/include/api/cn
CFLAGS_COMMON = -g -rdynamic -Wall
LIBEXTRACOMMON = ${ISVP_ENV_RELEASE_DIR_SDK}/lib/uclibc/libalog.a
GCC_VERSION_DIR=$(shell $(CC) -v 2>&1 | sed -n '/gcc version/p' | awk -F " " '{print $$3}')

ifeq (${CONFIG_DMALLOC}, y)
INCLUDE_COMMON += -I${ISVP_ENV_SDK_DIR}/external/$(GCC_VERSION_DIR)/dmalloc/include
CFLAGS_COMMON += -DDMALLOC -DDMALLOC_FUNC_CHECK
LIBEXTRACOMMON += ${ISVP_ENV_SDK_DIR}/external/$(GCC_VERSION_DIR)/dmalloc/lib/uclibc/libdmallocthcxx.a
endif
